﻿using System;
using System.Diagnostics;
using System.Threading;

namespace KillCompatTel {
	class Program {
		static void Main(string[] args) {
			while (true) {
				Process process = new Process();
				try {
					foreach (var p in Process.GetProcessesByName("CompatTelRunner")) {
						Console.WriteLine("Found compability telemetry running! Killing it...");
						p.Kill();
					}
				}
				catch (Exception ex) {
					Console.WriteLine("Error: {0}", ex.ToString());
				}
				finally {
					process.Close();
				}
				Thread.Sleep(10000);
			}
		}
	}
}